//上传教师图片预览
function previewFile() {
    var preview = document.querySelector(".image img");
    var file  = document.querySelector('input[type=file]').files[0];
    var reader = new FileReader();
    reader.onload  = function () {
        preview.src = reader.result;
    }
    if (file) {
        reader.readAsDataURL(file);
    } else {
        preview.src = "";
    }
}

$(document).ready(function () {
    //获取提交后的提示
    if($("#message").val()!=""){
        alert($("#message").val());
    }
});
